package com.itheima;


import java.time.LocalDateTime;



public class DateTest {
    public static void main(String[] args) {
//        //1.获取当前时间对象
//        Date date = new Date();
//
//        //2.给当前时间加上一天
//        long time = date.getTime();
//        date.setTime(time+1000*60*60*24);
//
//        //3.打印对象
//        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss");
//        String format = simpleDateFormat.format(date);
//        System.out.println(format);

        LocalDateTime localDateTime = LocalDateTime.of(2020, 6, 26, 15, 30, 00);
        int year = localDateTime.getDayOfYear();
        System.out.println(year);

    }

}
